Working With Dynamic Elements
PATH
WebObjects 4.0 Documentation >
WebObjects Tools and Techniques
Table of Contents
Previous Section
Generic WebObjects
You can use the generic WebObject element to create a dynamic version of any HTML element.
To create a dynamic version of a standard HTML element:
- Create the element (say, a heading).
- In the Inspector, click Make Dynamic.
 (September 1999)(Disk 2).iso/Technical Publications/webobjects/System/Documentation/Developer/WebObjects/WOTools/DynamicElements49.gif)
If the element has no specific dynamic counterpart, it becomes a generic WebObject element.
 (September 1999)(Disk 2).iso/Technical Publications/webobjects/System/Documentation/Developer/WebObjects/WOTools/DynamicElements50.gif)
To create a generic WebObject corresponding to any HTML element (even ones not supported directly by WebObjects Builder):
- Click
in the toolbar.
- Bring up the Inspector.
 (September 1999)(Disk 2).iso/Technical Publications/webobjects/System/Documentation/Developer/WebObjects/WOTools/DynamicElements18.gif)
A generic WebObject element has one required attribute, elementName, which specifies what type of element should be generated at run time.
For example, imagine that a future version of HTML adds a new container element, which you would like to generate dynamically in your component. You would:
- Type container name between the quotes in the Binding column.
- Check "Element is container".
- Use the Add Attribute button to specify any additional properties of the element.
Table of Contents
Next Section